import request from '@/utils/request.js'
// 用户账号登录
export const postUserLogin = data => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
// 手机验证码登录
export const postCode = data => {
  return request({
    url: '/login/code',
    method: 'post',
    data
  })
}
// 发送短信验证码
export const getCode = params => {
  return request({
    url: '/login/code',
    method: 'get',
    params
  })
}
